home *** CD-ROM | disk | FTP | other *** search
/ Visual Basic Controls / Visual Basic Controls.iso / vbcontrol / spchauto / data1.cab / Samples / Visual_C++ / Editor / PolSpell.h < prev    next >
Encoding:
C/C++ Source or Header  |  1999-07-16  |  2.2 KB  |  51 lines

  1. //
  2. // POLSPELL.H
  3. //
  4. // Copyright (c) 1999 POLAR.  All Rights Reserved.
  5. //
  6. // User accessible defines and function prototypes for exports
  7. //    from the Polar Spelling Checker DLL.
  8. // See also MFCSPELL.H for MFC wrapper.
  9. //
  10.  
  11.  
  12. #ifndef __POLSPELL_H
  13. #define __POLSPELL_H
  14.  
  15. #ifdef __cplusplus
  16. extern "C" {
  17. #endif
  18.  
  19. typedef void * HSPELL;
  20.  
  21. HSPELL WINAPI PS_Init();
  22. void WINAPI PS_Destroy(HSPELL hSpell);
  23. BOOL WINAPI PS_OpenDictionary(HSPELL hSpell, LPCTSTR pszMainDictFileName, LPCTSTR pszCustomDictFileName);
  24. void WINAPI PS_CloseDictionary(HSPELL hSpell);
  25. BOOL WINAPI PS_Reset(HSPELL hSpell);
  26. BOOL WINAPI PS_GetLanguageName(HSPELL hSpell, LPCTSTR pszDictFileName, LPTSTR pszLangName, unsigned nSize);
  27. BOOL WINAPI PS_IsWordExist(HSPELL hSpell, LPCTSTR pszWord);
  28. void WINAPI PS_AddToChangeAll(HSPELL hSpell, LPCTSTR pszFind, LPCTSTR pszReplace);
  29. void WINAPI PS_AddToIgnoreAll(HSPELL hSpell, LPCTSTR pszWord);
  30. BOOL WINAPI PS_IsCharAlpha(HSPELL hSpell, short ch);
  31. BOOL WINAPI PS_IsCharLower(HSPELL hSpell, short ch);
  32. BOOL WINAPI PS_IsCharUpper(HSPELL hSpell, short ch);
  33. BOOL WINAPI PS_GetReplacement(HSPELL hSpell, LPCTSTR pszWord, LPTSTR pszReplacement, unsigned nSize);
  34. BOOL WINAPI PS_GetSuggestion(HSPELL hSpell, LPCTSTR pszWord, short nSuggestionIndex, LPTSTR pszSuggestion, unsigned nSize);
  35. void WINAPI PS_AddWord(HSPELL hSpell, LPCTSTR pszNewWord);
  36. HGLOBAL WINAPI PS_CheckText(HSPELL hSpell, LPCTSTR pszText, short *pnExitStatus);
  37. BOOL WINAPI PS_GetAlwaysSuggest(HSPELL hSpell);
  38. void WINAPI PS_SetAlwaysSuggest(HSPELL hSpell, BOOL bNewValue);
  39. BOOL WINAPI PS_GetIgnoreWordsInUppercase(HSPELL hSpell);
  40. void WINAPI PS_SetIgnoreWordsInUppercase(HSPELL hSpell, BOOL bNewValue);
  41. BOOL WINAPI PS_GetIgnoreWordsWithNumbers(HSPELL hSpell);
  42. void WINAPI PS_SetIgnoreWordsWithNumbers(HSPELL hSpell, BOOL bNewValue);
  43. BOOL WINAPI PS_DownloadDictionaries(HSPELL hSpell, LPCTSTR pszUpdateURL, LPCTSTR pszInstallDir);
  44. BOOL WINAPI PS_OptionsDialog(HSPELL hSpell, LPCTSTR pszDictionaryDir, LPTSTR pszCustomDicFileName, unsigned nCustomDicSize,
  45.                              LPTSTR pszCurDicFileName, unsigned nCurDicSize, LPCTSTR pszURL, BOOL bInternetSupport);
  46.  
  47. #ifdef __cplusplus
  48. }
  49. #endif
  50.  
  51. #endif